package com.itheima.day01;

public class lockDemo {
    public static void main(String[] args) {
        lock ticke = new lock();
        Thread t1 = new Thread(ticke, "窗口一");
        Thread t2 = new Thread(ticke, "窗口二");
        t1.start();
        t2.start();
    }

    }
